package net.ericaro.neojavagen.expressions ;
import net.ericaro.neojavagen.expressions.AssignmentExpression;
import net.ericaro.neojavagen.blocks.StatementExpression;
import net.ericaro.neojavagen.expressions.AssignmentOperator;
import net.ericaro.neojavagen.expressions.LeftHandSide ;

/**
* *<pre> Assignment :
    LeftHandSide AssignmentOperator AssignmentExpression
</pre>
*/
public class Assignment  implements AssignmentExpression,StatementExpression {

LeftHandSide lefthandside;
AssignmentOperator assignmentoperator;
AssignmentExpression assignmentexpression ;

public Assignment( LeftHandSide lefthandside, AssignmentOperator assignmentoperator, AssignmentExpression assignmentexpression ){
	this.lefthandside = lefthandside; this.assignmentoperator = assignmentoperator; this.assignmentexpression = assignmentexpression ;
	}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	stringbuilder.append( this.lefthandside ).append(" ");
stringbuilder.append( this.assignmentoperator ).append(" ");
stringbuilder.append( this.assignmentexpression ).append(" ") ;
	return stringbuilder.toString();
}

}
